package com.example.cdctestsystem.util;

public class PageContext {
    //线程本地变量
    private static  ThreadLocal<Integer> pageNumThreadLocal = new ThreadLocal<>();

    public static void setPageNum(int pageNum)
    {
        pageNumThreadLocal.set(pageNum);
    }
    public static int getPageNum()
    {
        return pageNumThreadLocal.get();
    }
    public static void clear()
    {
        pageNumThreadLocal.remove();
    }
}
